package cn.tedu.spring.eg1;

import cn.tedu.spring.bean.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestProduct {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext
                ("cn.tedu.spring.bean");
        UserService userService = context.getBean(UserService.class);
        System.out.println("userService="+userService);

    }

}
